import axios from 'axios'
import {nanoid} from 'nanoid'

const personAbout = {
    namespaced:true,
    state:{
        mUser:localStorage.getItem("mUser") ?
        JSON.parse(localStorage.getItem("mUser")) : {},
    },
    actions:{
        addMUser(context,value){
            context.commit('ADD_MUSER',value)
        }
    },
    mutations:{
        ADD_MUSER(state,value){
            //console.log('mutations中的ADD_MUSER被调用了')
            state.mUser = value
            //console.log(state.mUser);
        }
    },
    getters:{
        // mId(state){
        //     return state.mUser.id
        // }
    },

}
export default personAbout